package com.andy.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.WebApplicationInitializer;

import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.xml.ws.soap.Addressing;
import java.util.Set;

public class MySpringServletContainerInitializer implements ServletContainerInitializer {

    public WebApplicationInitializer webApplicationInitializer=new MyWebApplicationInitializer();

    @Override
    public void onStartup(Set<Class<?>> set, ServletContext servletContext) throws ServletException {

        webApplicationInitializer.onStartup(servletContext);
    }
}
